//
//  AddViewController.m
//  PrivateSteward
//
//  Created by 贺银银 on 16/4/1.
//  Copyright © 2016年 闫贺晨. All rights reserved.
//

#import "AddViewController.h"

@interface AddViewController ()

@end

@implementation AddViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    //判断颜色
    [self ifColor];
   
    
    
    
}
- (void)ifColor{

    if ([self.amount isEqualToString:@"普通"] != 0) {
        
        self.view.backgroundColor = [UIColor colorWithRed:0.7216 green:0.9059 blue:0.9961 alpha:1.0];
        
    }else if([self.amount isEqualToString:@"紧急"] != 0){
    
        self.view.backgroundColor = [UIColor colorWithRed:0.8784 green:0.7882 blue:0.6667 alpha:1.0];
    
    
    }else if([self.amount isEqualToString:@"重大"] != 0){
    
        self.view.backgroundColor = [UIColor colorWithRed:0.8257 green:0.82 blue:0.8165 alpha:1.0];
    
    }





}







- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
